package com.zpark.service;

import com.zpark.vo.CartVO;

import java.nio.file.AccessDeniedException;
import java.util.List;

public interface ICartService {

    void addToCart(Integer uid, Integer pid, Integer amount, String username);

    List<CartVO> findVOByUid(Integer uid);

    Integer addNum(Integer cid, Integer uid, String username) throws AccessDeniedException;

    void removeCart(Integer cid, Integer uid, String username) throws AccessDeniedException;

}
